<link href="__ROOT__/static/admin/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-container">
	<form action="{:url('admin/product/product_add')}" method="post" class="form form-horizontal" id="form-article-add">
		<!-- 商品名称 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写商品标题" id="name" name="name" required>
			</div>
		</div>
		<!-- 简略名称 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>简略名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写简略名称" id="subname" name="subname" required>
			</div>
		</div>
		<!-- 型号名称 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>型号名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写型号名称" id="model" name="model" required>
			</div>
		</div>
		<!-- 商品编号 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品编号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写商品编号" id="serial_number" name="serial_number" required>
			</div>
		</div>
		<!-- 展现价格 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>展现价格：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写型号名称" id="show_price" name="show_price" required>
			</div>
		</div>
		<!-- 成本价 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>成 &nbsp;本&nbsp;价：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="请填写型号名称" id="cost_price" name="cost_price" required>
			</div>
		</div>
		<!-- 折扣 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">折&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;扣：</label>
			<div class="formControls col-xs-8 col-sm-2">
				<input type="text" class="input-text" placeholder="默认为不打折" id="discount" name="discount">
			</div><span class="c-red">(注:不打折请不要填写;如打9折请填写90,打95折请填写95)</span>
		</div>
		<!-- 商品类别 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品类别：</label>
			<div class="formControls col-xs-8 col-sm-2"> 
				<span class="select-box">
					<select name="cate" class="select">
						<?php foreach ($category as $row) { ?>
							<option value="<?php echo $row['id']; ?>"><?php echo $row['cname']; ?></option>
						<?php } ?>
					</select>
				</span> 
			</div>
		</div>
		<!-- 商品参数 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品参数：</label>
			<div class="formControls col-xs-8 col-sm-2"> 
				<span class="select-box">
					<select name="args" class="select">



						<option value="1">手机型号</option>



					</select>
				</span> 
			</div>
		</div>
		<!-- 排序值 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">排 &nbsp;序&nbsp;值：</label>
			<div class="formControls col-xs-8 col-sm-2">
				<input type="text" class="input-text" placeholder="排序值默认为:1" id="sort_value" name="sort_value" required value="1">
			</div>
		</div>
		<!-- 是否允许评论 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">允许评论：</label>
			<div class="formControls col-xs-8 col-sm-9 skin-minimal">
				<div class="check-box">
					<input type="checkbox" id="checkbox-1" name="allow_comment" value="1" checked>
					<label for="checkbox-1">&nbsp;</label>
				</div>
			</div>
		</div>
		<!-- 制造商 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">制 &nbsp;造&nbsp;商：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="如不填写默认为:make in honor" id="maker" name="maker" value="make in honor">
			</div>
		</div>
		<!-- 计价单位 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">计价单位：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="如不填写默认为:件" id="units" name="units" value="件">
			</div>
		</div>
		<!-- 关键字 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">关 &nbsp;键&nbsp;字：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="keyword" id="keyword" placeholder="多个关键字用英文逗号隔开，限5个关键字" class="input-text">
			</div>
		</div>
		<!-- 商品描述 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">商品描述：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea name="description" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="$.Huitextarealength(this,200)"></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
			</div>
		</div>
		<!-- 商品图片 -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">商品图片：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div class="uploader-list-container">
					<div class="queueList">
						<div id="dndArea" class="placeholder">
							<div id="filePicker-2"></div>
							<p>或将照片拖到这里，单次最多可选300张</p>
						</div>
					</div>
					<div class="statusBar" style="display:none;">
						<div class="progress"> <span class="text">0%</span> <span class="percentage"></span> </div>
						<div class="info"></div>
						<div class="btns">
							<div id="filePicker2"></div>
							<div class="uploadBtn">开始上传</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 保存并提交审核 -->
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交审核</button>
			</div>
		</div>
	</form>
</div>

<!--请在下方写此页面业务相关的脚本-->
<!-- 选择时间函数 -->
<script type="text/javascript" src="__ROOT__/static/admin/lib/My97DatePicker/4.8/selecttime.js"></script>
<script type="text/javascript" src="__ROOT__/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__ROOT__/static/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__ROOT__/static/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__ROOT__/static/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="__ROOT__/static/admin/lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="__ROOT__/static/admin/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__ROOT__/static/admin/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__ROOT__/static/admin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="__ROOT__/static/admin/static/h-ui/js/H-ui.pic.upload.js"></script>
<script type="text/javascript">

</script>
</body>
</html>